package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages = "com.example.demo.mapper")
public class DemoApplication {

    private final static String MIAOSHA_QUEUE = "temp";

    private final static String DATA_QUEUE = "data";

    private final static String MSG_QUEUE = "keFuMsg";

    private final static String h_QUEUE = "h";


    @Bean
    public Queue miaoShaQueue() {
        return new Queue(MIAOSHA_QUEUE, true);
    }

    @Bean
    public Queue dataQueue() {
        return new Queue(DATA_QUEUE, true);
    }

    @Bean
    public Queue msgQueue() {
        return new Queue(MSG_QUEUE, true);
    }

    @Bean
    public Queue hQueue() {
        return new Queue(h_QUEUE, true);
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
